import { ref } from 'vue'

export function useShowDetail() {
  const matterId = ref(0)
  const showDetail = ref(false)
  function handleShowDetail(id: number) {
    matterId.value = id
    showDetail.value = true
  }
  function handleClose() {
    showDetail.value = false
  }

  return {
    matterId,
    showDetail,
    handleShowDetail,
    handleClose,
  }
}
